<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>
	<div id="app">
		<p v-if="ok">成功</p>
		<p v-else>失败</p>

		<p v-show="ok">v-show成功</p>
		<p v-show="!ok">v-show失败</p>
		<button @click="ok=!ok">111</button>
	</div>
	<script src="../vue.js"></script>
	<script type="text/javascript">
		var vm = new Vue({
			el:'#app',
			data:{
				ok:false
			}
		});
	</script>
</body>
</html>